package com.hust.service.impl;

import com.hust.dao.LoginAndRegisterDao;
import com.hust.domain.User;
import com.hust.service.LoginAndRegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Desc
 * @Author xushuai
 * @CreateTime 2020/2/17 16:57
 **/
@Service
public class LoginAndRegisterServiceImpl implements LoginAndRegisterService {

    @Autowired
    LoginAndRegisterDao loginAndRegisterDao;


    @Override
    public User searchUserByuName(String username) {
        return loginAndRegisterDao.searchUserByuName(username);
    }

    @Override
    public int insertUser(User user) {
        return loginAndRegisterDao.insertUser(user);
    }
}
